package com.gears_software.bbnetwork.datas.finders;

import java.util.Properties;

import org.androidannotations.annotations.AfterInject;
import org.androidannotations.annotations.EBean;
import org.androidannotations.annotations.RootContext;

import com.gears_software.common.utils.property.PropertyUtils;

import android.content.Context;

@EBean
public class ProjectUrl {

	@RootContext
	Context context;
	Properties p;

	public ProjectUrl(Context context) {
		this.context = context;
	}

	@AfterInject
	void onCreate() {
		p = PropertyUtils.getProperties("Project.properties", context);
	}

	// 获取请求地址
	public String getHttpsUrl() {
		return p.getProperty("haseUrl");
	}

	// 获取验证码
	public String getRegist() {
		String res = String.format(getHttpsUrl() + "/regist.json");
		return res;
	}

	// 注册或登录
	public String getVerifyRegistCode() {
		String res = String.format(getHttpsUrl() + "/verifyRegistCode.json");
		return res;
	}

	// 直接登录
	public String getLogin() {
		String res = String.format(getHttpsUrl() + "/login.json");
		return res;
	}

	// 报单提交
	public String getApply() {
		String res = String.format(getHttpsUrl() + "/apply.json");
		return res;
	}

	// 报单列表
	public String getBaodanList() {
		String res = String.format(getHttpsUrl() + "/list.json");
		return res;
	}

	// 无提现密码状态下，第一次设置提现密码接口
	public String getSetCashPwd() {
		String res = String.format(getHttpsUrl() + "/setCashPassword.json");
		return res;
	}

	// 有提现密码状态下，修改提现密码接口
	public String getUpdateCashPwd() {
		String res = String.format(getHttpsUrl() + "/updateCashPassword.json");
		return res;
	}
	
	//获取可提现金额
	public String getTixianInfo(){
		String res = String.format(getHttpsUrl()+"/amountOfDDraw.json");
		return res;
	}

	//获取银行列表
	public String getYinhangList(){
		String res = String.format(getHttpsUrl()+"/achieveBankIconUrls.json");
		return res;
	}
	
	//绑定银行卡接口
	public String getBindCard(){
		String res = String.format(getHttpsUrl()+"/bindBankCard.json");
		return res;
	}
	
	//获取当前银行卡信息
	public String getCardInfo(){
		String res = String.format(getHttpsUrl()+"/currentBankInfo.json");
		return res;
	}
	
	//上传文件头像
	public String getUpdateFile(){
		String res = String.format(getHttpsUrl()+"/uploadFile.json");
		return res;
	}
	
	//查看实名认证信息接口
	public String getRealNameAuth(){
		String res = String.format(getHttpsUrl()+"/realNameAuthDetail.json");
		return res;
	}
	
	//实名认证接口
	public String getAudit(){
		String res = String.format(getHttpsUrl()+"/realNameAuth.json");
		return res;
	}
	
	//银行卡解除绑定
	public String getDeleteCard(){
		String res = String.format(getHttpsUrl()+"/unBindBankCard.json");
		return res;
	}
	
	//提现接口
	public String getTixian(){
		String res = String.format(getHttpsUrl()+"/draw.json");
		return res;
	}
	
	//删除文件接口
	public String getDeleteFile(){
		String res = String.format(getHttpsUrl()+"/deleteFile.json");
		return res;
	}
	
	//提现记录
	public String getTixianList(){
		String res = String.format(getHttpsUrl()+"/drawHistory.json");
		return res;
	}
	
	//获取首页数据
	public String getHome(){
		String res = String.format(getHttpsUrl()+"/getHomePageInfo.json");
		return res;
	}
	
	//查询推荐码接口
	public String getRecommend(){
		String res = String.format(getHttpsUrl()+"/getRecommendCode.json");
		return res;
	}
	
	//查询推荐奖励
	public String getRecommendRewardzList(){
		String res = String.format(getHttpsUrl()+"/recommendRewards.json");
		return res;
	}
	
	//提交推荐码
	public String getSubmitRecommendRewardzCode(){
		String res = String.format(getHttpsUrl()+"/submitRecommendCode.json");
		return res;
	}
	
	//跳过推荐码
	public String getSkipCode(){
		String res = String.format(getHttpsUrl()+"/skipRecommendCode.json");
		return res;
	}
	
	//版本更新接口
	public String getVersion(){
		String res = String.format(getHttpsUrl()+"/achieveAppVersionInfo.json");
		return res;
	}
}
